var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var ResKeeper = require("AA_ResKeeper");
var GameGlobalVariable = require("AA_GameGlobalVariable");
var UI_MosterLogic = require("AA_UI_MosterLogic");
var UI_BulletDaBang = require("AA_UI_BulletDaBang");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
_decorator.property;

var _def_UI_BulletDaBangCollider = function (e) {
  function _creator() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.offtime = 0;
    return t;
  }
  __extends(_creator, e);
  _creator.prototype.onCollisionEnter = function (e, t) {
    if (new Date().getTime() - this.offtime >= 10) {
      var o = e.node.getComponent(UI_MosterLogic.default);
      if (!o.isDie) {
        this.offtime = new Date().getTime();
        var n = t.node.parent.getComponent(UI_BulletDaBang.default);
        GameGlobalVariable.GameGlobalVariable.shaogunHit();
        o.beAttack(n);
      }
    }
  };
  return __decorate([_ccclass], _creator);
}(ResKeeper.default);
exports.default = _def_UI_BulletDaBangCollider;